const seq = require('../../seq')
const {STRING, TEXT, INTEGER} = require('../../types')

const Comment = seq.define('comment', {
  title: {
    type: STRING,
    allowNull: false,
    comment: '论坛标题'
  },
  content: {
    type: TEXT,
    allowNull: false,
    comment: '论坛内容'
  },
  uid: {
    type: INTEGER,
    allowNull: false,
    comment: '发帖人id'
  },
  houseId: {
    type: INTEGER,
    comment: '所对应的房屋id'
  },
  imgs: {
    type: TEXT,
    allowNull: true,
    comment: '相关图片'
  }
})

module.exports = Comment
